$(function(){
	$.fn.datebox.defaults.formatter = function(date){
		var y = date.getFullYear();
		return ''+y;
	};
	
	$('#panel').panel({
	    title:'商品类别销售统计',
	}); 
	
	$('#month_panel').panel({
		title:'月销售统计',
	});
	
	$('#beginDate').datebox({
		required:true,
	});
	
	$('#endDate').datebox({
		required:true,
	});
	
	$('#year').datebox({
		required:true,
		onSelect:function(){
			$('.hidden_year').attr('value',$('#year').datebox('getValue'));
		},
		onChange:function(){
			$('.hidden_year').attr('value',$('#year').datebox('getValue'));
		}
	});
	
	
});
